package com.py.credit.entity;

import com.py.framework.core.entity.BaseEntity;

import java.util.Date;

/**
 * 用户实体
 *
 * @author Leegern
 * @date 2018年4月25日
 */
public class UserEntity extends BaseEntity {

    /**
     * 序列号
     */
    private static final long serialVersionUID = -8332323868912249704L;
    /**
     * 用户名
     **/
    private String username;
    /**
     * 密码
     **/
    private String password;
    /**
     * 真实姓名
     **/
    private String realName;
    /**
     * 性别，1：男，2：女
     **/
    private int sex;
    /**
     * 手机号
     **/
    private String mobilePhone;
    /**
     * 部门ID
     **/
    private long officeId;
    /**
     * 用户类型，1：普通用户，2：区域管理员，3：超级管理员 4:部门管理员
     **/
    private int userType;
    /**
     * 用户状态，1：启用，2：停用
     **/
    private int userStatus;
    /**
     * 部门名称
     **/
    private String officeName;
    /**
     * 区域名称
     **/
    private String areaName;
    /**
     * 登录次数
     **/
    private int logTimes;
    /**
     * 错误时间
     **/
    private Date errorTime;


    public Date getErrorTime() {
        return errorTime;
    }

    public void setErrorTime(Date errorTime) {
        this.errorTime = errorTime;
    }

    public int getLogTimes() {
        return logTimes;
    }

    public void setLogTimes(int logTimes) {
        this.logTimes = logTimes;
    }

    /**
     * 所有父级部门id
     */
    private String parentDeptId;

    public String getParentDeptId() {
        return parentDeptId;
    }

    public void setParentDeptId(String parentDeptId) {
        this.parentDeptId = parentDeptId;
    }

    /**
     * @return the username
     */
    public String getUsername() {
        return username;
    }

    /**
     * @param username the username to set
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * @param password the password to set
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * @return the realName
     */
    public String getRealName() {
        return realName;
    }

    /**
     * @param realName the realName to set
     */
    public void setRealName(String realName) {
        this.realName = realName;
    }

    /**
     * @return the sex
     */
    public int getSex() {
        return sex;
    }

    /**
     * @param sex the sex to set
     */
    public void setSex(int sex) {
        this.sex = sex;
    }

    /**
     * @return the mobilePhone
     */
    public String getMobilePhone() {
        return mobilePhone;
    }

    /**
     * @param mobilePhone the mobilePhone to set
     */
    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    /**
     * @return the officeId
     */
    public long getOfficeId() {
        return officeId;
    }

    /**
     * @param officeId the officeId to set
     */
    public void setOfficeId(long officeId) {
        this.officeId = officeId;
    }

    /**
     * @return the userType
     */
    public int getUserType() {
        return userType;
    }

    /**
     * @param userType the userType to set
     */
    public void setUserType(int userType) {
        this.userType = userType;
    }

    /**
     * @return the userStatus
     */
    public int getUserStatus() {
        return userStatus;
    }

    /**
     * @param userStatus the userStatus to set
     */
    public void setUserStatus(int userStatus) {
        this.userStatus = userStatus;
    }

    /**
     * @return the officeName
     */
    public String getOfficeName() {
        return officeName;
    }

    /**
     * @param officeName the officeName to set
     */
    public void setOfficeName(String officeName) {
        this.officeName = officeName;
    }

    /**
     * @return the areaName
     */
    public String getAreaName() {
        return areaName;
    }

    /**
     * @param areaName the areaName to set
     */
    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }
}